﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace SqlMiM.Common.Controls
{
    public class ComboboxExtender : FrameworkElement
    {


        public static bool GetIsLoadingServers(DependencyObject obj)
        {
            return (bool)obj.GetValue(IsLoadingServersProperty);
        }

        public static void SetIsLoadingServers(DependencyObject obj, bool value)
        {
            obj.SetValue(IsLoadingServersProperty, value);
        }

        // Using a DependencyProperty as the backing store for IsLoadingServers.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty IsLoadingServersProperty =
            DependencyProperty.RegisterAttached("IsLoadingServers", typeof(bool), typeof(ComboboxExtender), new UIPropertyMetadata(false));




        public static bool GetIsLoadedServers(DependencyObject obj)
        {
            return (bool)obj.GetValue(IsLoadedServersProperty);
        }

        public static void SetIsLoadedServers(DependencyObject obj, bool value)
        {
            obj.SetValue(IsLoadedServersProperty, value);
        }

        // Using a DependencyProperty as the backing store for IsLoadedServers.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty IsLoadedServersProperty =
            DependencyProperty.RegisterAttached("IsLoadedServers", typeof(bool), typeof(ComboboxExtender), new UIPropertyMetadata(false));



        public static bool GetNoServersFound(DependencyObject obj)
        {
            return (bool)obj.GetValue(NoServersFoundProperty);
        }

        public static void SetNoServersFound(DependencyObject obj, bool value)
        {
            obj.SetValue(NoServersFoundProperty, value);
        }

        // Using a DependencyProperty as the backing store for NoServersFound.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty NoServersFoundProperty =
            DependencyProperty.RegisterAttached("NoServersFound", typeof(bool), typeof(ComboboxExtender), new UIPropertyMetadata(false));



    }
}
